﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo2
{
    class DeliveryRobot:Robot
    {
        private string hours;

        public DeliveryRobot()
        { }
        public DeliveryRobot(string name, string hours) : base(name)
        {
            this.hours = hours;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0},我传菜需要{1}", base.Name, this.hours);
        }

    }
}
